Rails.application.routes.draw do
  get 'data_manage/data_manage'

  get 'modify/modify_book_info'

  get 'gallery_books_page/gallery_books_page'

  get 'landed/landed'

  get 'welcome/index'

  get 'purchase/index'

  get 'statistics/index'
  get 'statistics/chaoqi'
  get 'register/add_user'
  get 'register/add_pblish'
  get 'user/book_search'
  get 'register/add_book'
  get 'register/add_book_type'
  post 'statistics/get_return_out_time_list'
  get 'user/book_search'
  get 'admin/index'
  get 'admin/add_book'
  get 'admin/books_restitution'
  get 'admin/readers_information_query'
  post 'statistics/get_today_borrow_list'
  root 'welcome#index'
  get 'user/search/:id' => 'user#search'
  post 'admin/get_reader_info'
  post 'landed/get_user_info'
  post 'admin/get_reader_borrow_info'
  post 'register/add_book_info'
  post 'register/add_user_info'
  post 'register/add_publish_info'
  post 'admin/borrow_book'
  post 'modify/get_book_info'
  post 'modify/updatebook'
  post 'modify/updatepblish'
  get "modify/destroy_book_info"
  post 'register/add_book_type_info'

  post 'admin/return_book'

  get "gallery_books_page/gallery_pblish"
  get 'modify/modify_pblish'
  get "modify/destroy_pblish_info"
  get "gallery_books_page/gallery_book_type"
  get "modify/modify_book_type"
  post "modify/updatetype"
  get "modify/destroy_book_type"

  # The priority is based upon order of creation: first created -> highest priority.
  # See how all your routes lay out with "rake routes".

  # You can have the root of your site routed with "root"
  # root 'welcome#book_search'

  # Example of regular route:
  #   get 'products/:id' => 'catalog#view'

  # Example of named route that can be invoked with purchase_url(id: product.id)
  #   get 'products/:id/purchase' => 'catalog#purchase', as: :purchase

  # Example resource route (maps HTTP verbs to controller actions automatically):
  #   resources :products

  # Example resource route with options:
  #   resources :products do
  #     member do
  #       get 'short'
  #       post 'toggle'
  #     end
  #
  #     collection do
  #       get 'sold'
  #     end
  #   end

  # Example resource route with sub-resources:
  #   resources :products do
  #     resources :comments, :sales
  #     resource :seller
  #   end

  # Example resource route with more complex sub-resources:
  #   resources :products do
  #     resources :comments
  #     resources :sales do
  #       get 'recent', on: :collection
  #     end
  #   end

  # Example resource route with concerns:
  #   concern :toggleable do
  #     post 'toggle'
  #   end
  #   resources :posts, concerns: :toggleable
  #   resources :photos, concerns: :toggleable

  # Example resource route within a namespace:
  #   namespace :admin do
  #     # Directs /admin/products/* to Admin::ProductsController
  #     # (app/controllers/admin/products_controller.rb)
  #     resources :products
  #   end
end
